package cn.ycl.system.other.study.designMode.strategy;

/**
 * @author YuanChangLiang
 * @description 旅游策略调用上下文
 * @date created in 14:17 2021/6/2
 */

public class TravelContext {
    TravelStrategy travelStrategy;

    public TravelContext(TravelStrategy travelStrategy){
        this.travelStrategy = travelStrategy;
    }

    public void context(){
        //骑自行车去旅游
        travelStrategy.travel();
    }
}
